/*
 * 通过推荐链接购买商品并支付后的回掉
 * 为推荐者添加积分
 */
var config = require("../_include/config");
module.exports = function(ach){
	var url_hash = ach.info.url_hash;
	var rgu_info = db.find_by_id(config.dbname.RecommendGoodsURL,config.dbIdPrefix.RecommendGoodsURL+url_hash);
	var bus = db.find_by_id(config.dbname.bus_id,ach.bus_id);
	bus._IncRecIntToUser(ach.info.user_id,ach.info.recInt);
	console.log("推荐商品支付完成，返还用户",require("../user/_con").get(ach.info.user_id).info.name,"积分",ach.info.recInt);
};